# try:
#   print(5 / 0)
# except ZeroDivisionError:
#   print('You can\'t divide by zero')

# print('give me two number')
# print('enter \'quit\' to quit')
# while True:
#   first = input('\n first number: ')
#   if first == 'quit':
#     break
#   second = input('\n second number: ')
#   if second == 'quit':
#     break
#   try:
#     answer = int(first) / int(second)
#   except ZeroDivisionError:
#     print('You can\'t divide by zero')
#   else:
#     print(answer)

news = r'file\news.txt'

with open(news) as file_object:
  txt = file_object.read()
  words = txt.split()
  print(len(words))
